//
//  WebViewController.m
//  EducationAdminClient
//
//  Created by 孙添凤 on 17/1/12.
//  Copyright © 2017年 周佳兴. All rights reserved.
//

#import "WebViewController.h"

@interface WebViewController ()
@property(nonatomic,strong)UIWebView *webView;
@end

@implementation WebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createLeftNavBar];
    [self setTitleLabelText:@"题库"];
    _webView =[[UIWebView alloc]init];
    [self.view addSubview:_webView];
    [_webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view.mas_left);
        make.right.equalTo(self.view.mas_right);
        make.top.equalTo(self.view.mas_top);
        make.bottom.equalTo(self.view.mas_bottom);
    }];
    [_webView setUserInteractionEnabled:YES];
    _webView.backgroundColor =[UIColor clearColor];
    [_webView setOpaque:NO];//opaque是不透明的意思
    [_webView setScalesPageToFit:YES];//自动缩放以适应屏幕
    
    NSURL *url = [NSURL URLWithString:_menu_Url];
    [_webView loadRequest:[NSURLRequest requestWithURL:url]];
    
}

-(void)viewWillAppear:(BOOL)animated{
    self.cusTabView.hidden = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
